import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FormBuilder, Validators } from '@angular/forms';
import { ApiService } from '../../../core/api/api.service';
import { MessageService } from '../../../core/service/message.service';
import { NzMessageService, NzModalService } from 'ng-zorro-antd';

/**
 * 未修复违规
 */

@Component({
    templateUrl: './unRepairViolation.html',
    styleUrls:['unRepairViolation.scss']
})
export class UnRepairViolationComponent implements OnInit {
    pages={
        pageNo:1,
        pageSize:10,
        total:0,
        status:'NotFixed',
        enterpriseName:''
    };
    dataList = [];
    tableLoading = false;
    ngOnInit() {
        this.loadList();
    }
    constructor(
        private router: Router,
        private fb: FormBuilder,
        private apiService: ApiService,
        private message: MessageService,
        private nzMessageService: NzMessageService,
        private modal: NzModalService
    ) { }
    loadList() {
        this.apiService.post("合规检测列表", this.pages).then((res: any) => {
            this.dataList = res.data.list;
        });
    }
}
